﻿using System.Net;
using HelpDeskTool.Entities.Devices;
using NUnit.Framework;

namespace HelpDeskToolTests;

[TestFixture]
public class NetworkAdapterTests
{
	[TestCase("Model", "192.168.0.1", "54:DF", ExpectedResult = "192.168.0.1 | 54:DF | Model")]
	public string ToStringShouldBeFullOrPartial(string modelName, string ipAddress, string macAddress)
	{
		var device = new NetworkAdapter
		{
			ModelName = modelName,
			IpAddress = IPAddress.Parse(ipAddress),
			MacAddress = macAddress
		};

		return device.ToString();
	}
}
